#!/bin/bash

sudo git pull origin dev

mvn clean package -DskipTests

apiImageName="api-`date +%Y%m%d%H%M%S`"

sudo docker build -t $apiImageName ./xiaozhu-api/

sudo docker run --name api -d -p 8002:8080 -v /data:/data $apiImageName
